//-----------------------------------------------------------------------------
//	File: usart3.c
//	Author: hsia
//		bsp of usart3
//-----------------------------------------------------------------------------

#ifndef __USART3_H__
#define	__USART3_H__

#include "stm32f10x.h"

//-----------------------------------------------------------------------------
//	usart init
//-----------------------------------------------------------------------------
void usart3_init(void);

//-----------------------------------------------------------------------------
//	usart dma tx configure
//-----------------------------------------------------------------------------
void usart3_dma_send(const void *buf, uint16_t len);

//-----------------------------------------------------------------------------
//	usart_send - Transmits single data through the USART
// 		@data: the data to transmit.
//-----------------------------------------------------------------------------
void usart3_send(uint16_t dat);

//-----------------------------------------------------------------------------
//	usart_receive - Returns the most recent received data by the USART
// 		@return: The received data.
//-----------------------------------------------------------------------------
uint16_t usart3_receive(void);

#endif
